package WorkComparator;



public class Supermarket {
    private double commodity1;
    private double commodity2;
    private double commodity3;

    public Supermarket(double commodity1, double commodity2, double commodity3) {
        this.commodity1 = commodity1;
        this.commodity2 = commodity2;
        this.commodity3 = commodity3;
    }

    public double getCommodity1() {
        return commodity1;
    }

    public void setCommodity1(double commodity1) {
        this.commodity1 = commodity1;
    }

    public double getCommodity2() {
        return commodity2;
    }

    public void setCommodity2(double commodity2) {
        this.commodity2 = commodity2;
    }

    public double getCommodity3() {
        return commodity3;
    }

    public void setCommodity3(double commodity3) {
        this.commodity3 = commodity3;
    }
    public double getTotal(){return commodity1+commodity2+commodity3;}

}

